Integrand size = 26, antiderivative size = 47 \[ \int \frac {a+b x^2}{\sqrt {-1+c x} \sqrt {1+c x}} \, dx=\frac {b x \sqrt {-1+c x} \sqrt {1+c x}}{2 c^2}+\frac {\left (b+2 a c^2\right ) \text {arccosh}(c x)}{2 c^3} \]
[Out]
Time = 0.01 (sec) , antiderivative size = 47, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.077, Rules used = {397, 54} \[ \int \frac {a+b x^2}{\sqrt {-1+c x} \sqrt {1+c x}} \, dx=\frac {\left (2 a c^2+b\right ) \text {arccosh}(c x)}{2 c^3}+\frac {b x \sqrt {c x-1} \sqrt {c x+1}}{2 c^2} \]
[In]
[Out]
Rule 54
Rule 397
Rubi steps \begin{align*} \text {integral}& = \frac {b x \sqrt {-1+c x} \sqrt {1+c x}}{2 c^2}-\frac {\left (-b-2 a c^2\right ) \int \frac {1}{\sqrt {-1+c x} \sqrt {1+c x}} \, dx}{2 c^2} \\ & = \frac {b x \sqrt {-1+c x} \sqrt {1+c x}}{2 c^2}+\frac {\left (b+2 a c^2\right ) \cosh ^{-1}(c x)}{2 c^3} \\ \end{align*}
Time = 0.17 (sec) , antiderivative size = 58, normalized size of antiderivative = 1.23 \[ \int \frac {a+b x^2}{\sqrt {-1+c x} \sqrt {1+c x}} \, dx=\frac {b c x \sqrt {-1+c x} \sqrt {1+c x}+2 \left (b+2 a c^2\right ) \text {arctanh}\left (\sqrt {\frac {-1+c x}{1+c x}}\right )}{2 c^3} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(90\) vs. \(2(39)=78\).
Time = 4.03 (sec) , antiderivative size = 91, normalized size of antiderivative = 1.94
method | result | size |
risch | \(\frac {b x \sqrt {c x -1}\, \sqrt {c x +1}}{2 c^{2}}+\frac {\left (2 c^{2} a +b \right ) \ln \left (\frac {c^{2} x}{\sqrt {c^{2}}}+\sqrt {c^{2} x^{2}-1}\right ) \sqrt {\left (c x -1\right ) \left (c x +1\right )}}{2 c^{2} \sqrt {c^{2}}\, \sqrt {c x -1}\, \sqrt {c x +1}}\) | \(91\) |
default | \(\frac {\sqrt {c x -1}\, \sqrt {c x +1}\, \left (\operatorname {csgn}\left (c \right ) c \sqrt {c^{2} x^{2}-1}\, b x +2 \ln \left (\left (\sqrt {c^{2} x^{2}-1}\, \operatorname {csgn}\left (c \right )+c x \right ) \operatorname {csgn}\left (c \right )\right ) a \,c^{2}+\ln \left (\left (\sqrt {c^{2} x^{2}-1}\, \operatorname {csgn}\left (c \right )+c x \right ) \operatorname {csgn}\left (c \right )\right ) b \right ) \operatorname {csgn}\left (c \right )}{2 c^{3} \sqrt {c^{2} x^{2}-1}}\) | \(103\) |
[In]
[Out]
none
Time = 0.30 (sec) , antiderivative size = 55, normalized size of antiderivative = 1.17 \[ \int \frac {a+b x^2}{\sqrt {-1+c x} \sqrt {1+c x}} \, dx=\frac {\sqrt {c x + 1} \sqrt {c x - 1} b c x - {\left (2 \, a c^{2} + b\right )} \log \left (-c x + \sqrt {c x + 1} \sqrt {c x - 1}\right )}{2 \, c^{3}} \]
[In]
[Out]
Timed out. \[ \int \frac {a+b x^2}{\sqrt {-1+c x} \sqrt {1+c x}} \, dx=\text {Timed out} \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 74, normalized size of antiderivative = 1.57 \[ \int \frac {a+b x^2}{\sqrt {-1+c x} \sqrt {1+c x}} \, dx=\frac {a \log \left (2 \, c^{2} x + 2 \, \sqrt {c^{2} x^{2} - 1} c\right )}{c} + \frac {\sqrt {c^{2} x^{2} - 1} b x}{2 \, c^{2}} + \frac {b \log \left (2 \, c^{2} x + 2 \, \sqrt {c^{2} x^{2} - 1} c\right )}{2 \, c^{3}} \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 69, normalized size of antiderivative = 1.47 \[ \int \frac {a+b x^2}{\sqrt {-1+c x} \sqrt {1+c x}} \, dx=\frac {\sqrt {c x + 1} \sqrt {c x - 1} {\left (\frac {{\left (c x + 1\right )} b}{c^{2}} - \frac {b}{c^{2}}\right )} - \frac {2 \, {\left (2 \, a c^{2} + b\right )} \log \left (\sqrt {c x + 1} - \sqrt {c x - 1}\right )}{c^{2}}}{2 \, c} \]
[In]
[Out]
Time = 17.42 (sec) , antiderivative size = 293, normalized size of antiderivative = 6.23 \[ \int \frac {a+b x^2}{\sqrt {-1+c x} \sqrt {1+c x}} \, dx=-\frac {\frac {14\,b\,{\left (\sqrt {c\,x-1}-\mathrm {i}\right )}^3}{{\left (\sqrt {c\,x+1}-1\right )}^3}+\frac {14\,b\,{\left (\sqrt {c\,x-1}-\mathrm {i}\right )}^5}{{\left (\sqrt {c\,x+1}-1\right )}^5}+\frac {2\,b\,{\left (\sqrt {c\,x-1}-\mathrm {i}\right )}^7}{{\left (\sqrt {c\,x+1}-1\right )}^7}+\frac {2\,b\,\left (\sqrt {c\,x-1}-\mathrm {i}\right )}{\sqrt {c\,x+1}-1}}{c^3-\frac {4\,c^3\,{\left (\sqrt {c\,x-1}-\mathrm {i}\right )}^2}{{\left (\sqrt {c\,x+1}-1\right )}^2}+\frac {6\,c^3\,{\left (\sqrt {c\,x-1}-\mathrm {i}\right )}^4}{{\left (\sqrt {c\,x+1}-1\right )}^4}-\frac {4\,c^3\,{\left (\sqrt {c\,x-1}-\mathrm {i}\right )}^6}{{\left (\sqrt {c\,x+1}-1\right )}^6}+\frac {c^3\,{\left (\sqrt {c\,x-1}-\mathrm {i}\right )}^8}{{\left (\sqrt {c\,x+1}-1\right )}^8}}+\frac {2\,b\,\mathrm {atanh}\left (\frac {\sqrt {c\,x-1}-\mathrm {i}}{\sqrt {c\,x+1}-1}\right )}{c^3}-\frac {4\,a\,\mathrm {atan}\left (\frac {c\,\left (\sqrt {c\,x-1}-\mathrm {i}\right )}{\left (\sqrt {c\,x+1}-1\right )\,\sqrt {-c^2}}\right )}{\sqrt {-c^2}} \]
[In]
[Out]